home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Storage / LinkDlgs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  4.4 KB  |  132 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LinkDlgs.h
  3.  
  4.     Contains:    function declarations for Paste As and Link Info dialogs
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <11>     8/29/95    DM        1221778, 1276165: [ShowLinkUpdateAlert]
  13.                                     drop count arg in ShowLinkUpdateAlert
  14.         <10>     5/26/95    VL        1251403: Multithreading naming support.
  15.          <9>     3/22/95    CC        1230322: Changed parameter to
  16.                                     ShowPasteAsDialog().
  17.          <8>      3/9/95    CC        1221471: Added changesAllowed parameter to
  18.                                     ShowLinkDestinationInfo() and
  19.                                     ShowLinkSourceInfo().
  20.          <7>      3/3/95    CC        1223861 Added ShowLinkStatusAlert().
  21.          <6>     2/15/95    CC        1220327 Added InitLinkDialogs().
  22.          <5>      2/7/95    CC         1211295: ShowPasteAsDialog() takes an
  23.                                     isMove parameter.
  24.          <4>     9/20/94    CC        1160232 - Added ShowLinkUpdateAlert().
  25.          <3>     8/10/94    CC        1179943 - LinkInfo dialog functions take
  26.                                     ODBaseLink and ODBaseLinkSource parameters.
  27.          <2>      8/2/94    CC        #1178169 - ShowPasteAsDialog() takes
  28.                                     ODFacet* instead of ODFrame*.
  29.          <1>     6/24/94    CC        first checked in
  30.  
  31.         ------------------- CC ---- Converted to SOM
  32.  
  33.          <8>     5/27/94    jpa        Remove ASLM dependency [1165267]
  34.          <7>      5/9/94    MB        #1162181: Changes necessary to install MMM.
  35.          <6>      4/6/94    CC        XMPTypeInfo: Changed field "creationDate"
  36.                                     to "creationTime" and "modificationDate" to
  37.                                     "changeTime". (1154722)
  38.          <5>      4/5/94    CC        Removed unused declaration of class
  39.                                     XMPTypeSet. (1153046)
  40.          <4>     3/25/94    JA        Added missing #include (1147588)
  41.          <3>     3/24/94    CC        ShowLinkSourceInfo() takes XMPChangeID
  42.                                     parameter; XMPPasteAsResult specifies
  43.                                     original kind when selected kind is a
  44.                                     translation (1153068).
  45.          <2>     3/17/94    CC        Added ShowLinkSourceInfo(),
  46.                                     ShowLinkDestinationInfo(), XMPLinkAction,
  47.                                     XMPLinkResult, and XMPLinkInfo. (1151329)
  48.          <1>     3/14/94    CC        first checked in
  49.          <0>     3/14/94    CC        Declaration of ShowPasteAsDialog (1144253).
  50.  
  51.     To Do:
  52. */
  53.  
  54. #ifndef _LINKDLGS_
  55. #define _LINKDLGS_
  56.  
  57. #ifndef _ODTYPES_
  58. #include <ODTypes.h>
  59. #endif
  60.  
  61. #ifndef __TIME_H__
  62. #include <time.h>
  63. #endif
  64.  
  65. //==============================================================================
  66. // Classes used by this interface
  67. //==============================================================================
  68.  
  69. class ODStorageUnit;
  70. class ODFacet;
  71. class ODBaseLinkSource;
  72. class ODBaseLink;
  73. class ODSession;
  74.  
  75. //==============================================================================
  76. // Data Interchange functions
  77. //==============================================================================
  78.  
  79. //-------------------------------------------------------------------------------------
  80. // InitLinkDialogs
  81. //-------------------------------------------------------------------------------------
  82.  
  83. void InitLinkDialogs(ODSession* session);
  84.  
  85. //-------------------------------------------------------------------------------------
  86. // ShowPasteAsDialog
  87. //-------------------------------------------------------------------------------------
  88.  
  89. ODBoolean ShowPasteAsDialog(
  90.                 ODBoolean                canPasteLink,
  91.                 ODPasteAsMergeSetting    mergeSetting,
  92.                 ODBoolean                isMove,
  93.                 ODStorageUnit*            contentSU,
  94.                 ODFacet*                facet,
  95.                 ODTypeToken                viewType,
  96.                 ODPasteAsResult*        result);
  97.  
  98. //-------------------------------------------------------------------------------------
  99. // ShowLinkSourceInfo
  100. //-------------------------------------------------------------------------------------
  101.  
  102. ODBoolean ShowLinkSourceInfo(
  103.                 ODBaseLinkSource*    linkSource,
  104.                 ODUpdateID            change,
  105.                 ODBoolean            changesAllowed,
  106.                 ODLinkInfoResult*    infoResult);
  107.                 
  108. //-------------------------------------------------------------------------------------
  109. // ShowLinkDestinationInfo
  110. //-------------------------------------------------------------------------------------
  111.  
  112. ODBoolean ShowLinkDestinationInfo(
  113.                 ODBaseLink*            link,
  114.                 ODLinkInfo*         info,
  115.                 ODBoolean            changesAllowed,
  116.                 ODLinkInfoResult*    infoResult);
  117.  
  118. //------------------------------------------------------------------------------
  119. // ShowLinkUpdateAlert
  120. //------------------------------------------------------------------------------
  121.  
  122. ODBoolean ShowLinkUpdateAlert( );
  123.  
  124. //------------------------------------------------------------------------------
  125. // ShowLinkStatusAlert
  126. //------------------------------------------------------------------------------
  127.  
  128. void ShowLinkStatusAlert(ODError error);
  129.  
  130. #endif // _LINKDLGS_
  131.  
  132.